package com.nfc.webapp.controllers;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

import com.nfc.base.Entity.User;
import com.nfc.base.Service.UserService;

public class ApplicationController {

	@Autowired
	UserService userService;
	@RequestMapping(value = "Applications", method = RequestMethod.GET)
	public ModelAndView getUsersView() {
		User user = new User();
		// user.setName("Amjad");
		ModelAndView mv = new ModelAndView("usersView");
		mv.addObject("users", userService.getUserList(user));
		mv.addObject("pg_hd", "Birth Date Mailer ~ NFC Portal");
		return mv;
	}
}
